import{
    createStore,
    applyMiddleware,
    combineReducers
} from 'redux'
//跟reducer产生联系
import countReducer from './reducers/countReducer'
import movieReducer from './reducers/movieReducer'
import thunk from 'redux-thunk'
//redux监听工具
import { composeWithDevTools } from 'redux-devtools-extension'
const allReducer = combineReducers({
    count:countReducer,
    movie:movieReducer
})
//创造store 
const store = createStore(allReducer,composeWithDevTools(applyMiddleware(thunk)))

//暴露store跟jsx产生联系
export default store